package cn.young.javalearning.designpattern.factorypattern.f_simplefactoryplus;

public class SimpleFactory<T> implements BeanFactory<T> {

    @Override
    public T getBean(Class<T> clazz) {
        try {
            return clazz.newInstance();
        } catch (Exception e) {
            e.printStackTrace();
            return null;
        }
    }
}
